<?php

namespace app\common\model;

class Cart extends BaseModel
{
    public function __construct(array $data = [])
    {
        parent::__construct($data);
    }

    public function goods()
    {
        return $this->belongsTo(Goods::class);
    }

    public function item()
    {
        return $this->belongsTo(GoodsItem::class,'goods_item_id');
    }
}